<?php
/**
 * | @author 韩威兵^life <1877361302@qq.com>
 * +----------------------------------------------------------------------
 * | @copyright 2016 - 2019 HQ
 * +----------------------------------------------------------------------
 * | @version $Id: 2019/4/22 18:46 jiahe_new Old.php 韩威兵^life $
 * +----------------------------------------------------------------------
 */

namespace app\admin\controller;

use think\Controller;
use app\common\common\lib\OpensslEncrypt;
use think\Db;

class  Old extends Controller {

    public function getTocken(){
        $uid = input('id');
        $field = Db::table('jiahe_admin_store_user')->where(['user_id'=> $uid])->find();
        $token_test = OpensslEncrypt::encrypt($field['admin_id']);
        setcookie('Token_old', $token_test, time()+86400, '/');
        //$this->redirect('/admin/index/login');
    }
}  